package day02;

public class BitOperation{
	public static void main(String[]args){
		byte b1 = 10;
		System.out.println(Integer.toBinaryString(b1));
		byte b2 = -20;
		System.out.println(Integer.toBinaryString(b2));
		byte b3 = (byte)(b1&b2);
		System.out.println(b3);
		System.out.println(Integer.toBinaryString(b3));
		int i = -2;
		i = i>>>2;
		System.out.println(i);
		byte b = (byte)(128<<1);
		System.out.println(b);
		System.out.println(-2147483648<<2);
		System.out.println(2147483647+1);
		i ^= 3;//i = i^3;
		i >>>= 5;//i = i>>>5;
		i = 3*-4;
		System.out.println(i);
		
		
	}
}